<?php

class commDbResource
{
    private static $instance;

    function __construct()
    {

    }

    public static function getDsn($db, $type = 'pdo')
    {
        if (!self::$instance) {
            $instance = new self();
        }

        return $instance->setResource($db, $type);
    }

    public function setResource($db, $type)
    {
        return commDbResourceBase::resource($db, $type);
    }
}